<template>
  <div>
    <div>
      <h4>感觉功能评定</h4>
      <el-row v-show="pgForm.feel_isShow1">
        <el-col>
          <div>
            <el-button type="primary" @click="add">添加评定</el-button>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col v-show="pgForm.feel_isShow2">
          <div>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="浅感觉"
              v-model="pgForm.feel_textarea1">
            </el-input>
          </div>
        </el-col>
        <el-col v-show="pgForm.feel_isShow2">
          <div>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="深感觉"
              v-model="pgForm.feel_textarea2">
            </el-input>
          </div>
        </el-col>
        <el-col v-show="pgForm.feel_isShow2">
          <div>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="复合感觉"
              v-model="pgForm.feel_textarea3">
            </el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "feel",
  title: "感觉功能评定",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      pgForm: {
        feel_isShow1: 1,
        feel_isShow2: 0,
        feel_textarea1: '',
        feel_textarea2: '',
        feel_textarea3: '',
      }
    }
  },
  methods:{
    add(){
      this.pgForm.feel_isShow1 = 0
      this.pgForm.feel_isShow2 = 1
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
